package api.model;

import m.common.model.FieldMeta;
import m.common.model.LinkTableMeta;
import m.common.model.Model;
import m.common.model.TableMeta;
import m.common.model.type.FieldType;

@TableMeta(name="ot_api_migration_table",description="数据迁移的表")
public class ApiMigrationTable extends Model {
    @LinkTableMeta(name="migration_oid",table= ApiMigration.class,description="所属数据迁移")
    private ApiMigration migration;
    @FieldMeta(name="table_class",type= FieldType.STRING,length=200,description="迁移模型类")
    private String tableClass;
    @FieldMeta(name="table_desc",type= FieldType.STRING,length=200,description="模型描述")
    private String tableDesc;
    @FieldMeta(name="record_num",type= FieldType.LONG,description="记录数量")
    private Long recordNum;
    @FieldMeta(name="send_num",type= FieldType.LONG,description="发送中数量")
    private Long sendNum;
    @FieldMeta(name="success_num",type= FieldType.LONG,description="成功数量")
    private Long successNum;
    @FieldMeta(name="error_num",type= FieldType.LONG,description="失败数量")
    private Long errorNum;
    @FieldMeta(name="surplus_num",type= FieldType.LONG,description="剩余数量")
    private Long surplusNum;
    @FieldMeta(name="exe_progress",type= FieldType.DOUBLE,description="执行进度")
    private Double exeProgress;

    public ApiMigration getMigration() {
        return migration;
    }

    public void setMigration(ApiMigration migration) {
        this.migration = migration;
    }

    public String getTableClass() {
        return tableClass;
    }

    public void setTableClass(String tableClass) {
        this.tableClass = tableClass;
    }

    public String getTableDesc() {
        return tableDesc;
    }

    public void setTableDesc(String tableDesc) {
        this.tableDesc = tableDesc;
    }

    public Long getRecordNum() {
        return recordNum;
    }

    public void setRecordNum(Long recordNum) {
        this.recordNum = recordNum;
    }

    public Long getSendNum() {
        return sendNum;
    }

    public void setSendNum(Long sendNum) {
        this.sendNum = sendNum;
    }

    public Long getSuccessNum() {
        return successNum;
    }

    public void setSuccessNum(Long successNum) {
        this.successNum = successNum;
    }

    public Long getErrorNum() {
        return errorNum;
    }

    public void setErrorNum(Long errorNum) {
        this.errorNum = errorNum;
    }

    public Long getSurplusNum() {
        return surplusNum;
    }

    public void setSurplusNum(Long surplusNum) {
        this.surplusNum = surplusNum;
    }

    public Double getExeProgress() {
        return exeProgress;
    }

    public void setExeProgress(Double exeProgress) {
        this.exeProgress = exeProgress;
    }
}
